﻿// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
//  gitee:https://gitee.com/hgflydream/Gardener 
//  issues:https://gitee.com/hgflydream/Gardener/issues 
// -----------------------------------------------------------------------------

using Gardener.Application.Dtos;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Gardener.Application.Interfaces
{
    public interface ICarsService:IApplicationServiceBase<CarDto, int>
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<PagedList<CarDto>> Search(string name,  int pageIndex = 1, int pageSize = 10);
        /// <summary>
        /// 审核
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        //Task<bool> Pass(int id);
        /// <summary>
        /// 放行
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        //Task<bool> Release(int id);
    }
}